const imageSuffix = ['.jpg', 'jpeg', 'gif', 'png'];

export function isImage(filename: string) {
  return imageSuffix.some((item) => {
    return filename.endsWith(item);
  });
}
